package com.javapda.c328r.command;

import org.apache.commons.lang.builder.ToStringBuilder;

public class ComediaDataPackage {

	private int[] data;
	private int packageId;
	private byte[] imageData;
	private int verifyError;

	public String toString() {
		return new ToStringBuilder(this)
						.append("package id", getPackageId())
						.append("package size", getPackageSize())
						.append("data size", getImageDataSize())
						.append("image data size", getImageData().length)
						.append("verify code", getVerifyError())
						.toString();
	}
	public ComediaDataPackage(int[] _data) {
		this.data = _data;
	}
	public ComediaDataPackage() {
		super();
	}
	public int getPackageSize() {
		return data.length;
	}
	public int getPackageId() {
		return this.packageId;
	}
	public int getImageDataSize() {
		return this.imageData.length;
	}
	public byte[] getImageData() {
		return this.imageData;
	}
	public int getVerifyError() {
		return this.verifyError;
	}
	public void setPackageId(int _packageId) {
		this.packageId = _packageId;
	}
	public void setImageData(byte[] _imageData) {
		this.imageData = _imageData;
	}
	public void setVerifyError(int _verifyError) {
		this.verifyError = _verifyError;
	}

}
